package org.microframework.cloud.files;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cache.annotation.EnableCaching;
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;
import org.springframework.cloud.loadbalancer.annotation.LoadBalancerClients;
import org.springframework.context.annotation.ComponentScan;
import org.springframework.scheduling.annotation.EnableAsync;

@EnableDiscoveryClient
@EnableAsync
@EnableCaching
@LoadBalancerClients  // 使用默认的LoadBalancer配置
@SpringBootApplication
@ComponentScan(basePackages = {
    "org.microframework.cloud.files",
    "org.microframework.base.core.swagger",  // 扫描micro-base-swagger配置
    "org.microframework.base.core.security", // 扫描micro-base-security配置
    "org.microframework.base.core"           // 扫描micro-base-core配置
})
public class FilesApplication {

    public static void main(String[] args) {
        SpringApplication.run(FilesApplication.class, args);
    }
} 